package com.zsy.srpingframework.beans.factory.jiekou;

import com.zsy.srpingframework.beans.factory.exception.BeansException;
import com.zsy.srpingframework.resourceloader.Resource;
import com.zsy.srpingframework.resourceloader.ResourceLoader;
//该接口的作用就是加载 Bean 从各种资源中读取
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

}
